/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.inria.openmath.omapi.implementation;

/**
 *
 * @author Mr.Sam
 */
import java.math.BigInteger;
import fr.inria.openmath.omapi.*;

/**
 * Defines accessor/mutators for this kind of node.
 */
public class BigIntegerNodeImpl extends NodeImpl implements BigIntegerNode {

    BigInteger value;

    public BigIntegerNodeImpl (BigInteger value) {
        this.value = value;
        this.type = OM_BIGINT;
    }

    public String toString() {
        return typeToString(type) + "(" + value + ")";
    }

    public void setValue(BigInteger value) {
        this.value = value;
    }

    public BigInteger getValue() {
        return value;
    }

}
